Optimal. Leaf size=101 \[ -\frac{2 (b B-A c) \sqrt{c d-b e} \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b c^{3/2}}-\frac{2 A \sqrt{d} \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b}+\frac{2 B \sqrt{d+e x}}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.175131, antiderivative size = 101, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {824, 826, 1166, 208} \[ -\frac{2 (b B-A c) \sqrt{c d-b e} \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b c^{3/2}}-\frac{2 A \sqrt{d} \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b}+\frac{2 B \sqrt{d+e x}}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 824
Rule 826
Rule 1166
Rule 208
Rubi steps
\begin{align*} \int \frac{(A+B x) \sqrt{d+e x}}{b x+c x^2} \, dx &=\frac{2 B \sqrt{d+e x}}{c}+\frac{\int \frac{A c d+(B c d-b B e+A c e) x}{\sqrt{d+e x} \left (b x+c x^2\right )} \, dx}{c}\\ &=\frac{2 B \sqrt{d+e x}}{c}+\frac{2 \operatorname{Subst}\left (\int \frac{A c d e-d (B c d-b B e+A c e)+(B c d-b B e+A c e) x^2}{c d^2-b d e+(-2 c d+b e) x^2+c x^4} \, dx,x,\sqrt{d+e x}\right )}{c}\\ &=\frac{2 B \sqrt{d+e x}}{c}+\frac{(2 A c d) \operatorname{Subst}\left (\int \frac{1}{-\frac{b e}{2}+\frac{1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt{d+e x}\right )}{b}+\frac{(2 (b B-A c) (c d-b e)) \operatorname{Subst}\left (\int \frac{1}{\frac{b e}{2}+\frac{1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt{d+e x}\right )}{b c}\\ &=\frac{2 B \sqrt{d+e x}}{c}-\frac{2 A \sqrt{d} \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b}-\frac{2 (b B-A c) \sqrt{c d-b e} \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b c^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.118492, size = 101, normalized size = 1. \[ \frac{2 (A c-b B) \sqrt{c d-b e} \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{d+e x}}{\sqrt{c d-b e}}\right )}{b c^{3/2}}-\frac{2 A \sqrt{d} \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{b}+\frac{2 B \sqrt{d+e x}}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.011, size = 196, normalized size = 1.9 \begin{align*} 2\,{\frac{B\sqrt{ex+d}}{c}}-2\,{\frac{A\sqrt{d}}{b}{\it Artanh} \left ({\frac{\sqrt{ex+d}}{\sqrt{d}}} \right ) }+2\,{\frac{Ae}{\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{\sqrt{ex+d}c}{\sqrt{ \left ( be-cd \right ) c}}} \right ) }-2\,{\frac{Acd}{b\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{\sqrt{ex+d}c}{\sqrt{ \left ( be-cd \right ) c}}} \right ) }-2\,{\frac{bBe}{c\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{\sqrt{ex+d}c}{\sqrt{ \left ( be-cd \right ) c}}} \right ) }+2\,{\frac{Bd}{\sqrt{ \left ( be-cd \right ) c}}\arctan \left ({\frac{\sqrt{ex+d}c}{\sqrt{ \left ( be-cd \right ) c}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.10021, size = 1013, normalized size = 10.03 \begin{align*} \left [\frac{A c \sqrt{d} \log \left (\frac{e x - 2 \, \sqrt{e x + d} \sqrt{d} + 2 \, d}{x}\right ) + 2 \, \sqrt{e x + d} B b -{\left (B b - A c\right )} \sqrt{\frac{c d - b e}{c}} \log \left (\frac{c e x + 2 \, c d - b e + 2 \, \sqrt{e x + d} c \sqrt{\frac{c d - b e}{c}}}{c x + b}\right )}{b c}, \frac{A c \sqrt{d} \log \left (\frac{e x - 2 \, \sqrt{e x + d} \sqrt{d} + 2 \, d}{x}\right ) + 2 \, \sqrt{e x + d} B b - 2 \,{\left (B b - A c\right )} \sqrt{-\frac{c d - b e}{c}} \arctan \left (-\frac{\sqrt{e x + d} c \sqrt{-\frac{c d - b e}{c}}}{c d - b e}\right )}{b c}, \frac{2 \, A c \sqrt{-d} \arctan \left (\frac{\sqrt{e x + d} \sqrt{-d}}{d}\right ) + 2 \, \sqrt{e x + d} B b -{\left (B b - A c\right )} \sqrt{\frac{c d - b e}{c}} \log \left (\frac{c e x + 2 \, c d - b e + 2 \, \sqrt{e x + d} c \sqrt{\frac{c d - b e}{c}}}{c x + b}\right )}{b c}, \frac{2 \,{\left (A c \sqrt{-d} \arctan \left (\frac{\sqrt{e x + d} \sqrt{-d}}{d}\right ) + \sqrt{e x + d} B b -{\left (B b - A c\right )} \sqrt{-\frac{c d - b e}{c}} \arctan \left (-\frac{\sqrt{e x + d} c \sqrt{-\frac{c d - b e}{c}}}{c d - b e}\right )\right )}}{b c}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 12.2639, size = 104, normalized size = 1.03 \begin{align*} \frac{2 \left (\frac{A d e \operatorname{atan}{\left (\frac{\sqrt{d + e x}}{\sqrt{- d}} \right )}}{b \sqrt{- d}} + \frac{B e \sqrt{d + e x}}{c} - \frac{e \left (- A c + B b\right ) \left (b e - c d\right ) \operatorname{atan}{\left (\frac{\sqrt{d + e x}}{\sqrt{\frac{b e - c d}{c}}} \right )}}{b c^{2} \sqrt{\frac{b e - c d}{c}}}\right )}{e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.2155, size = 157, normalized size = 1.55 \begin{align*} \frac{2 \, A d \arctan \left (\frac{\sqrt{x e + d}}{\sqrt{-d}}\right )}{b \sqrt{-d}} + \frac{2 \, \sqrt{x e + d} B}{c} + \frac{2 \,{\left (B b c d - A c^{2} d - B b^{2} e + A b c e\right )} \arctan \left (\frac{\sqrt{x e + d} c}{\sqrt{-c^{2} d + b c e}}\right )}{\sqrt{-c^{2} d + b c e} b c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]